package hehe.validation.annotation;

import hehe.validation.base.Rule;
import hehe.validation.validator.RequiredValidator;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(processor = ValidatorProcessor.class,validator = {RequiredValidator.class})
public @interface Required
{
    String tip()  default "";
    String[] scene() default {};
    boolean non()  default false;
    boolean onEmpty()  default true;
    boolean goOn() default false;
    String operator() default Rule.AND_OPERATOR;
}
